package view.listener;


import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.MessageBox;

import control.Storage;

public class InfoBoxListener extends SelectionAdapter {

	@Override
	public void widgetSelected(SelectionEvent arg0) {

		MessageBox infoBox = new MessageBox(Display.getCurrent()
				.getActiveShell(), SWT.OK | SWT.APPLICATION_MODAL
				| SWT.ICON_INFORMATION);

		infoBox.setText(Storage.getInstance().getMessages().getString("INFORMATION"));
		infoBox.setMessage(Storage.getInstance().getMessages().getString("DEVELOPER"));

		infoBox.open();
	}
}
